<?php
echo form_open('admin/product/editProduct',array('class'=>'form-horizontal'),array('record_id'=>$pro_id));
?>
<div class="addform">
    <div class="thongbao">
        <?php if($error) foreach($error as $ele):?>
        <div class="alert alert-error fade in"><?php echo $ele ?><a class="close" data-dismiss="alert">&times;</a></div>
        <?php endforeach;?>
        <?php if($success) {?>
        <div class="alert alert-success fade in"><?php echo $success ?><a class="close" data-dismiss="alert">&times;</a></div>
        <?php }
        else{
        ?>
    </div>
    <div class="control-group">
        <label class="control-label">Tên sản phẩm</label>
        <div class="controls">
            <?php echo form_input('pro_name','{pro_name}')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Phân loại</label>
        <div class="controls">
            <?php echo form_input('pro_cat_id','{pro_cat_id}')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="appendedInput">Giá</label>
        <div class="controls">
            <div class="input-append">
                <?php echo form_input('pro_price','{pro_price}','class="input-small"') ?><span class="add-on">VNĐ</span>
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Kích thước</label>
        <div class="controls">
            <?php echo form_input('pro_size','{pro_size}')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Sản phẩm nổi bật</label>
        <div class="controls">
            <?php echo form_checkbox('pro_hot','{pro_hot}',TRUE)?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Mô tả ngắn</label>
        <div class="controls">
            <?php echo form_textarea('pro_summary','{pro_summary}','class="textareaSummary"')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Mô tả</label>
        <div class="controls">
            <?php echo form_textarea('pro_description','{pro_description}','class="textareaContent"')?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">Hiển thị</label>
        <div class="controls">
            <?php echo form_checkbox('pro_active','{pro_active}',$pro_active)?>
        </div>
    </div>
    <div class="form-actions">
        <button type="submit" name="action" class="btn btn-primary">Cập nhật</button>
        <button class="btn">Huỷ bỏ</button>
    </div>
    <?php }?>
</div>
<?php echo form_close() ?>